/**********************************************************
 * File description:ConfigFileService.h
 * Function:配置文件服务类
 * Current Version: 1.0.0
 * Author: 夏新宇
 * Date: 2022-11-16
 *  -----
 *  Copyright by bokun Software.
 **********************************************************/

#ifndef CONFIGFILESERVICE_H
#define CONFIGFILESERVICE_H

#include <QCoreApplication>
#include "XmlParser.h"
#include "Convertion.h"
#include "QPCRDB.h"
#include "QPCR.h"
#include <QDebug>
#include <iostream>


class ConfigFileService
{
public:
    ConfigFileService();
    QList<QString> getExperimentType();
    QList<QString> getConsumablesType();
    int* getRowAndColByConsumableType(QString experimentType);
    QList<QString> getTargetType();
    QList<QHash<QString,QString>> getDyes();
    QString getWeihuPassword();
    QList<QString> getStageNameByExperimentType(QString experimentType);
    ProcedureStage getStageByStageName(QString stageName);
    QList<ProcedureStep> getStepByStageName(QString stageName);
    QHash<QString,QString> getCommandAndFault();
    QString getSoftwareInfo();
private:
    QString path;
    Simplexml * simplexml;
    Convertion * conv;
};

#endif // CONFIGFILESERVICE_H
